// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/** 用户名密码登录 POST /api/v1/authorize/login */
export async function loginUsingPOST(body: API.LoginDto, options?: { [key: string]: any }) {
  return request<API.ApiResponseOauth2TokenVo>('/api/v1/authorize/login', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
